package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.task.Move;
import org.example.mapper.MoveMapper;
import org.example.service.MoveService;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author 魏锴
 * @description 针对表【tb_task_move】的数据库操作Service实现
 * @createDate 2024-01-13 23:05:18
 */
@Service
public class MoveServiceImpl extends ServiceImpl<MoveMapper, Move>
        implements MoveService {

    @Override
    public boolean insertMove(Move move) {
        move.setMoveTime(new Date());
        return baseMapper.insertMove(move);
    }

    @Override
    public List<Move> getMoveList(int tester) {
        return baseMapper.getMoveList(tester);
    }
}




